package com.xuecheng.framework.exception;

import com.xuecheng.framework.model.response.ResultCode;

/**
 * @author ShengJinFeng
 * @version V1.0
 * @ClassName CustomException
 * @Description (自定义通用异常)
 * @date 2020/1/19 9:31
 * @since V1.0
 */
public class CustomException extends RuntimeException {

    ResultCode resultCode;

    public CustomException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return resultCode;
    }
}
